package com.group56.view.coachend;

import com.group56.factory.CoachAppCMFactory;
import com.group56.utils.FXMLSrcMenu;
import com.group56.utils.FXMLViewHandler;
import com.group56.view.FrameworkController;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.layout.Pane;

import java.io.IOException;

public class CoachAppFrameWork implements FrameworkController {
    public Pane navigatorPane;
    public Pane contentPane;

    public void initialize() throws IOException {
        assembleViews();
        registerToMediator();
    }
    @Override
    public void assembleViews() throws IOException {
        FXMLViewHandler.putViewInPane(navigatorPane, FXMLSrcMenu.CoachEnd.NAVIGATOR.getSrc());
        FXMLViewHandler.putViewInPane(contentPane, FXMLSrcMenu.CoachEnd.SCHEDULE.getSrc());
    }

    @Override
    public Pane getContentPane() {
        return contentPane;
    }

    @Override
    public Pane getAdsPane() {
        return null;
    }

    @Override
    public Pane getNavigatorPane() {
        return navigatorPane;
    }

    @Override
    public Pane getFooterPane() {
        return null;
    }

    @Override
    public void registerToMediator() {
        CoachAppCMFactory.getCtrlrMediator().registerController(FXMLSrcMenu.CoachEnd.APP_FRAMEWORK.getSrc(),this);
    }

    @Override
    public Parent getView() {
        return null;
    }
}
